package com.woniuedu.lecturer.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.woniuedu.lecturer.bean.UploadResult;
import com.woniuedu.lecturer.dto.FindByIdTeacherDto;
import com.woniuedu.lecturer.dto.RsFindAllTeacherDto;
import com.woniuedu.lecturer.dto.Teacher;
import com.woniuedu.lecturer.entity.ResponseEntity;
import com.woniuedu.lecturer.entity.TeacherQuery;
import org.springframework.web.multipart.MultipartFile;

/**
* @author 王成亮
* @description 针对表【edu_teacher(讲师)】的数据库操作Service
* @createDate 2022-04-18 17:01:34
*/
public interface TeacherService extends IService<com.woniuedu.lecturer.entity.Teacher> {
    //分页查询讲师
    ResponseEntity<RsFindAllTeacherDto> findAll(int page,int limit);
    //根据id删除讲师
    ResponseEntity<com.woniuedu.lecturer.entity.Teacher> deleteTeacherById(String id);
    //更新讲师
    ResponseEntity updateTeacher(com.woniuedu.lecturer.entity.Teacher teacher);
    //上传讲师头像
    ResponseEntity<UploadResult> upload(MultipartFile file,String id);
    //新增讲师
    ResponseEntity<Teacher> addTeacher(Teacher addTeacherDto);
    //根据id查询讲师
    ResponseEntity<FindByIdTeacherDto> findTeacherById(String id);
    //根据条件分页查询讲师
    ResponseEntity findTeacherByTeacher(int current, int limit, TeacherQuery teacherQuery);
}
